/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo06;

/**
 *
 * @author Administrator
 */
public class Man2 {

    private String eyescolor;

    public String getEyescolor() {
        return eyescolor;
    }

    public void setEyescolor(String eyescolor) {
        this.eyescolor = eyescolor;
    }

    public String getColor() {
        return null;
    }

    public static void main(String[] args) {
        Man2 asia = new AsiaMan2();
        System.out.println("亚洲人的肤色是" + asia.getColor());
        EuroMan2 euro = new EuroMan2();
        System.out.println("欧洲人的肤色是" + euro.getColor());
    }
}

class AsiaMan2 extends Man2 {

    @Override
    public String getColor() {
        return "黄皮肤的";
    }
}

class EuroMan2 extends Man2 {

    @Override
    public String getColor() {
        return "白皮肤的";
    }
    
}
